


<?php if($mode == "PRO"){?>
<div class="widget">
    <div class="widgetTitle">
        <h3>Refine Results</h3>
    </div>
    <!-- /.widgetTitle // -->
    <div class="widgetContent">

                   <div class="accordion">
                       <div class="acc_title">
                       <a class="accordion-toggle" data-toggle="collapse"
						data-parent="#category" href="#category"> <i
						class="icon-check"></i> <strong>All Category</strong> <i
						class="icon-arrow-down pull-right"></i>
					</a>
                       
                           </div>
                           
                           
                           
                       </div><!-- /.acc_content -->
                 	<div id="category" class="accordion-body collapse in">
						<div class="acc_content">

							<ul class="list">

								<?php foreach($parent as $parent):?>
								<li>
							<a href="<?= URL::to('products/' . $parent->slug); ?>"
                               title="<?= $parent->name; ?>"> <?= $parent->name; ?></a>
								</li>
								<?php endforeach;?>

							</ul>

						</div>
					</div>

    
        <!-- /.acc_content -->
    
    <!-- /.accordion -->
    

</div><!-- /.widgetContent -->
</div>
<?php }?>

<?php if($mode == "LEAD"){?>



<div class="widget">
    <div class="widgetTitle">
        <h3>Refine Results</h3>
    </div>
    <!-- /.widgetTitle // -->
    <div class="widgetContent">

                   <div class="accordion">
                       <div class="acc_title">
                       <a class="accordion-toggle" data-toggle="collapse"
						data-parent="#category" href="#category"> <i
						class="icon-check"></i> <strong>All Category</strong> <i
						class="icon-arrow-down pull-right"></i>
					</a>
                       
                           </div>
                           
                           
                           
                       </div><!-- /.acc_content -->
                 	<div id="category" class="accordion-body collapse in">
						<div class="acc_content">

							<ul class="list">

								<?php foreach($parent as $parent):?>
								<li>
							<a href="<?= URL::to('products/buylead/'.Str::slug(Location::get()) . '/' . $parent->slug); ?>"
                               title="<?= $parent->name; ?>"> <?= $parent->name; ?></a>
								</li>
								<?php endforeach;?>

							</ul>

						</div>
					</div>

    
        <!-- /.acc_content -->
    
    <!-- /.accordion -->
    

</div><!-- /.widgetContent -->
</div>
<?php }?>







